home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 1998 June / Software of the Month Club 1998 June.iso / mac / Business / Hi's Universal Saver / Menu Events 1.3 / Menu Events Help / Menu Events Help.rsrc / STR#_1025.txt < prev    next >
Encoding:
Text File  |  1998-04-13  |  3.7 KB  |  163 lines

  1. 
  2.  
  3. 
  4.  
  5. 
  6.  
  7. ∞
  8.  
  9. ∞
  10.  
  11. åPurpose
  12.  
  13. 
  14.  
  15. 
  16.  
  17. The big trend these days in Macintosh software is toward more
  18.  
  19. integration between applications.  Increasingly, developers achieve this
  20.  
  21. integration by using the Apple event interfaces of other applications, and
  22.  
  23. by defining their own suites of Apple events for other applications to use.
  24.  
  25. 
  26.  
  27. 
  28.  
  29. Because there are far more clients than servers in the world of Apple
  30.  
  31. events, there is a large number of ΓÇ£high-level-event-awareΓÇ¥ applications
  32.  
  33. which support program linking, using Apple events to control other
  34.  
  35. applications (or just to be modern), but not offering any interface of their
  36.  
  37. own.  Apart from the Required suite mandated by Finder, the functionality
  38.  
  39. of these applications is beyond the reach of scripting utilities and other
  40.  
  41. programs that send Apple events.  Menu Events is a utility which opens up
  42.  
  43. this demi-monde of dabblers and dilettantes to the glories of Apple event
  44.  
  45. controllability.  Applications which are by their nature only
  46.  
  47. high-level-event-aware become scriptable and recordable Apple event
  48.  
  49. servers.
  50.  
  51. 
  52.  
  53. If you regard an applicationΓÇÖs collective user interface in terms of a set
  54.  
  55. of available functions, then take subsets according to how the user can
  56.  
  57. access these functions (Command-key combination, button click, menus,
  58.  
  59. and so on), you will usually find that the subset for menus is largest.  This
  60.  
  61. is because menus are intended as a baseline for the user interface;
  62.  
  63. however else you can do something, you should be able to do it with menus
  64.  
  65. as well.  Often a function is not available in a certain mode, but a menu
  66.  
  67. selection will shift the application into that mode, then another will access
  68.  
  69. the function.  This conformity is an asset of the Macintosh operating
  70.  
  71. system which can be exploited to offer a fairly general means of
  72.  
  73. controlling other applications.
  74.  
  75. 
  76.  
  77. 
  78.  
  79. 
  80.  
  81. 
  82.  
  83. Γîâ
  84.  
  85. Γîâ
  86.  
  87. ├ÑWho Can Use Menu Events?
  88.  
  89. 
  90.  
  91. 
  92.  
  93. You do not need AppleScript, or any other optional software package, for
  94.  
  95. Menu Events to work.  It only requires System 7.
  96.  
  97. 
  98.  
  99. 
  100.  
  101. However, it has no user interface of its own.  It only enables programs to
  102.  
  103. do something they would not otherwise be able to do, namely, invoke
  104.  
  105. another applicationΓÇÖs menu commands.
  106.  
  107. 
  108.  
  109. Any program you write, or any application which lets you compose and
  110.  
  111. send Apple events (such as a general scripting utility, or Maybe, part of
  112.  
  113. AWOL Utilities), can send a Menu event to any suitably modern application
  114.  
  115. and hope for a response.  Whether or not a particular application
  116.  
  117. cooperates depends on how it was programmed, but any application
  118.  
  119. programmed according to the published instructions of Apple Computer
  120.  
  121. will cooperate, with a bit of coaxing.
  122.  
  123. See the section entitled ΓÇ£LimitationsΓÇ¥ for more information.
  124.  
  125. 
  126.  
  127. Menu events can be received from any machine on the AppleTalk network,
  128.  
  129. subject to the usual Users & Groups program linking permission scheme.
  130.  
  131. This allows you to use Menu events to control applications from a remote
  132.  
  133. location.
  134.  
  135. 
  136.  
  137. If you have AppleScript, you should place the ΓÇ£Menu Events Scripting
  138.  
  139. AdditionΓÇ¥ file in your ΓÇ£Scripting AdditionsΓÇ¥ folder.  This will allow you
  140.  
  141. to use Menu events in your scripts.  (Unlike most scripting additions, this
  142.  
  143. one only describes event terminology, and does not implement the event
  144.  
  145. handlers themselves, so it is useless without the Menu Events extension.)
  146.  
  147. ΓÇ£Menu Events Sample ScriptΓÇ¥ shows the sort of thing you can do with the
  148.  
  149. scripting addition file installed.  Before writing a script to control a
  150.  
  151. target application, you should try recording its menu actions using your
  152.  
  153. script editor.  If the target application supports program linking, and the
  154.  
  155. Caps Lock key is down, these actions will be recorded as Menu Events
  156.  
  157. script commands.
  158.  
  159. 
  160.  
  161. 
  162.  
  163.